package com.vegetable.modules.service.finance.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.vegetable.modules.entity.finance.PaymentTeamDetail;
import com.vegetable.modules.mapper.finance.PaymentTeamDetailMapper;
import com.vegetable.modules.service.finance.IPaymentTeamDetailService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class PaymentTeamDetailServiceImpl extends ServiceImpl<PaymentTeamDetailMapper, PaymentTeamDetail> implements IPaymentTeamDetailService {
    @Override
    public List<PaymentTeamDetail> queryByMainIds(List<Long> mainIds) {
        QueryWrapper<PaymentTeamDetail> wrapper = new QueryWrapper<>();
        wrapper.in("main_id", mainIds);
        return baseMapper.selectList(wrapper);
    }
}
